﻿using System;
using System.Collections.Generic;

namespace Sustainalytics.RiskRatings.Reporting.ProfileTest
{


    class Program
    {
        private static ReportsManager _reportsManager;

        static void Main(string[] args)
        {
            var connectionStrings = new Dictionary<string, string>
            {
                //{"RiskRatingsResearchDW", "mongodb://localhost:27017/RiskRatingsResearchDW_B"}
                //{"RiskRatingsResearchDW", "mongodb://54.72.160.155:27017/RiskRatingsResearchDW_A"}
              {"RiskRatingsResearchDW", "mongodb://54.171.12.91:27017/RiskRatingsResearchDW_A"}
            };


            _reportsManager = ReportsManager.GetInstance(100, connectionStrings);

            _reportsManager.GeneratePdfReport(new Guid("95e63fda-f577-4cef-b5c0-119a416d21d9"), false); //Intesa San Paolo
            //_reportsManager.GeneratePdfReport(new Guid("6c6845ff-4d9e-4f4d-b920-962af834ef0a"), false); //Chevron
            //_reportsManager.GeneratePdfReport(new Guid("abdd4cf3-4152-4570-a1ed-207458370ef0"), false); //Catterpilar 
            //_reportsManager.GeneratePdfReport(new Guid("a49bc749-3d3e-4ed9-bbcd-3a18df068d08"), false);
            //_reportsManager.GeneratePdfReport(new Guid("ef2f072b-dac3-42c2-8479-6ffc75e4b03e"), false);
            //_reportsManager.GeneratePdfReport(new Guid("0f7e8d10-42c2-4521-8833-5efce38b86e8"), false);
            //_reportsManager.GeneratePdfReport(new Guid("18c63f4b-38bf-4121-a06c-b6daf5005d80"), false);
            //_reportsManager.GeneratePdfReport(new Guid("43be9147-7544-460e-afcc-220c92e4c95c"), false);
            //_reportsManager.GeneratePdfReport(new Guid("0d5ccf9c-887e-4378-8ca8-b8f9ae299f31"), false);
            //_reportsManager.GeneratePdfReport(new Guid("764ad44e-2038-481d-9220-e00eaee05a2f"), false);
            // Nume scurt: AT&T Inc
            //_reportsManager.GeneratePdfReport(new Guid("b0e0cb97-fc7a-4b35-ab01-c83c790a600c"), false);
            //_reportsManager.GeneratePdfReport(new Guid("6c6845ff-4d9e-4f4d-b920-962af834ef0a"), false);
           //_reportsManager.GeneratePdfReport(new Guid("18c63f4b-38bf-4121-a06c-b6daf5005d80"), false);


            //Nume lung pe 3 randuri: Companhia de Saneamento Básico do Estado de São Paulo - SABESP
            //_reportsManager.GeneratePdfReport(new Guid("b58aa7df-d3c8-4e6e-9b07-1b026431bc80"));

            //Console.WriteLine("Press any key to close.");
            //Console.ReadLine();

            //var parameters = new RiskRatingsReportParameters
            //{
            //    CompanyId = new Guid("b0e0cb97-fc7a-4b35-ab01-c83c790a600c")
            //};

            //var paramJson = JsonConvert.SerializeObject(parameters);

            //var task = new RiskRatingsReportDownloadTask();

            //var context = new LongRunningTaskContext(null, null, paramJson, new CancellationToken());

            //task.Start(context);

        }

    }
}
